<?php
    /*
     * @author Alexander.Chajka
     */

    include 'config.php';

    $options = new stdClass();
    
    $options->lib_path = $sh_lib_path;
    $options->tpl_path = $sh_tpl_path;

    $options->db_user = $sh_dbo_user;
    $options->db_pass = $sh_dbo_pass;
    $options->db_path = $sh_dbo_path;
    $options->db_base = $sh_dbo_base;
    $options->db_prefix = $sh_dbo_prefix;
    
    require_once $sh_lib_path.'/mainframe.php';
    require_once $sh_lib_path.'/database.php';
    require_once $sh_lib_path.'/user.php';

    $mainframe = new mainframe($options);
    $db = new database($options);
    $user = new user($options);
?>
